// 静态路由数据
import type { RouteRecordRaw } from 'vue-router';

export const  routesList: RouteRecordRaw[] = [
  {
    path: '/',
    name: 'Layout',
    component: () => import('@/layout/index.vue'),
    redirect: '/home',
    children: [
      {
        path: 'home',
        name: 'Home',
        component: () => import('@/views/home/index.vue'),
        meta: { title: '首页', icon: 'HomeFilled' }
      },
      {
        path: 'role',
        name: 'Role',
        component: () => import('@/views/role/index.vue'),
        meta: {
          title: '角色',
          icon: 'Avatar'
        }
      },
      {
        path: 'approval',
        name: 'approval',
        component: () => import('@/views/approval/index.vue'),
        // 路由元信息
        meta: {
          title: '审批',
          icon: 'List'
        }
      },
      {
        path: 'attendance',
        name: 'attendance',
        component: () => import('@/views/attendance/index.vue'),
        // 路由元信息
        meta: {
          title: '考勤',
          icon: 'Ticket'
        }
      },
      {
        path: 'department',
        name: 'department',
        component: () => import('@/views/department/index.vue'),
        // 路由元信息
        meta: {
          title: '组织',
          icon: 'Grid'
        }
      },
      {
        path: 'employee',
        name: 'employee',
        component: () => import('@/views/employee/index.vue'),
        // 路由元信息
        meta: {
          title: '员工',
          icon: 'User'
        }
      },
      {
        path: 'permission',
        name: 'permission',
        component: () => import('@/views/permission/index.vue'),
        // 路由元信息
        meta: {
          title: '权限',
          icon: 'lock'
        }
      },
      {
        path: 'salary',
        name: 'salary',
        component: () => import('@/views/salary/index.vue'),
        // 路由元信息
        meta: {
          title: '工资',
          icon: 'money'
        }
      },
      {
        path: 'social',
        name: 'social',
        component: () => import('@/views/social/index.vue'),
        // 路由元信息
        meta: {
          title: '社保',
          icon: 'Collection'
        },
        children: [
          {
            path: '/2login',
            name: 'Lfogin',
            component: () => import('@/views/log/index.vue'),
            meta: {
              title: '登录',
              icon: 'CircleCheckFilled'
            }
          }
        ]
      }
    ]
  },
  {
    path: '/login',
    name: 'Login',
    component: () => import('@/views/login/index.vue')
  }
];
